package ar.edu.utn.frba.disenio.arena.transformers;

import java.math.BigDecimal;

import ar.edu.utn.frba.disenio.Asiento;

import com.uqbar.commons.collections.Transformer;


public class PrecioTransformer implements Transformer<Asiento, String>
{

	@Override
	public String transform(Asiento asiento) 
	{
		return asiento.getPrecio().setScale(2, BigDecimal.ROUND_CEILING).stripTrailingZeros().toString();
	}
	
}
